package org.huawei260.TiKu.ODsuanfa;

import java.util.Scanner;

/**
 * @Author: qingle
 * @Date: 2024/10/28-16:11
 * @Description: 2820 【哈希表】2024D密码解密
 * @version: 1.0
 */
public class D_2024D_2820__哈希表密码解密 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		System.out.println(decrypt(s));
	}

	/**
	 * 解密密文字符串
	 *
	 * @param cipherText 密文字符串
	 * @return 明文字符串
	 */
	public static String decrypt(String cipherText) {
		StringBuilder plainText = new StringBuilder();
		String[] parts = cipherText.split("\\*");

		for (String part : parts) {
			if (part.length() == 2) { // 处理 "j-z" 范围的字符
				int num = (part.charAt(0) - '0') * 10 + (part.charAt(1) - '0' + 1);
				char ch = (char) ('j' + (num - 1) % 10 + 1);
				plainText.append(ch);
			} else { // 处理 "a-i" 范围的字符
				char ch = (char) ('a' + (part.charAt(0)));
				plainText.append(ch);
			}
		}

		return plainText.toString();
	}

//	private static String jiemi(String arr) {
//////		String[] arrs = arr.split("*");
////
////		// 按*进行分割字符串
////		String[] arrs = arr.split("\\*");
////
////		StringBuilder sb = new StringBuilder();
////		for (int i = 0; i < arrs.length; i++) {
////			String s = arrs[i];
////			char c = (char) (Integer.parseInt(s) + 'a' - 1);
////			sb.append(c);
////		}
////		return sb.toString();
//
//		for (int i = 26; i >= 1; i--) {
//			String key = i + (i > 9 ? "\\*" : "");
//			String val = String.valueOf((char) ('a' + i - 1));
//			arr = arr.replaceAll(key, val);
//		}
//		return arr;
//	}
}
